package projet_v1.items.help;

import projet_v1.Breed;
import projet_v1.Character;
import projet_v1.Human;
import projet_v1.Item;
/**
 * This class manages foods.
 * 
 * @author Alexis Laurent
 * 
 */
public class Food extends Item {
	
	/**
     * Constructor of Food class.
     */
	public Food() {
		super(Item.CODE_FOOD_ITEM);
	}
	
	@Override
	public void use(Character c) {
		if(c.getBreed().equals(Breed.HUMAN))
			// we feed the human
			((Human) c).setTurnsSinceLastMeal(0);
	}

}
